import request from '@/utils/request'

// 查询第三方账号列表
export function listAccounts(query) {
  return request({
    url: '/passengers/accounts/list',
    method: 'get',
    params: query
  })
}

// 查询第三方账号详细
export function getAccounts(otherAccountsId) {
  return request({
    url: '/passengers/accounts/' + otherAccountsId,
    method: 'get'
  })
}

// 新增第三方账号

export function addAccounts(data) {
  return request({
    url: '/passengers/accounts',
    method: 'post',
    data: data
  })
}

// 修改第三方账号

export function updateAccounts(data) {
  return request({
    url: '/passengers/accounts',
    method: 'put',
    data: data
  })
}

// 删除第三方账号

export function delAccounts(otherAccountsId) {
  return request({
    url: '/passengers/accounts/' + otherAccountsId,
    method: 'delete'
  })
}
